import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqRewardHelper } from "./SeqRewardHelper";
import { EPetExploreRecordType } from "./EPetExploreRecordType";
type int = number;
//class SPetExploreRecord
    
    export  class SPetExploreRecord extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SPetExploreRecord();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.type.__write(arg1);
            arg1.writeInt(this.level);
            arg1.writeInt(this.extend);
            SeqRewardHelper.write(arg1, this.getItems);
            SeqRewardHelper.write(arg1, this.lossItems);
            arg1.writeDate(this.recordDt);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.type = EPetExploreRecordType.__read(arg1);
            this.level = arg1.readInt();
            this.extend = arg1.readInt();
            this.getItems = SeqRewardHelper.read(arg1);
            this.lossItems = SeqRewardHelper.read(arg1);
            this.recordDt = arg1.readDate();
            return;
        }

        public /* const */_type: int=225;

        public /* var */type: EPetExploreRecordType;

        public /* var */level: int;

        public /* var */extend: int;

        public /* var */getItems: Array<any>;

        public /* var */lossItems: Array<any>;

        public /* var */recordDt: Date;

        public static /* var */_regist: SPetExploreRecord;
    }

            SPetExploreRecord._regist = new SPetExploreRecord(true);
        